package com.fqgj.xjd.user.client;

import com.fqgj.common.api.Response;
import com.fqgj.xjd.user.client.request.UserHighmarkVo;

/**
 * Created with IntelliJ IDEA.
 * User: pavan
 * Date: 2019/10/12
 * Time: 下午2:54
 */
public interface UserHighmarkService {

    /**
     * High Mark
     * 无则新增 有则更新
     *
     * @param userHighmarkVo
     * @return
     */
    Response<UserHighmarkVo> addUserHighmark(UserHighmarkVo userHighmarkVo);

    /**
     * 取最后一条
     *
     * @param userCode
     * @return
     */
    Response<UserHighmarkVo> getUserHighmarkByUserCode(String userCode);

    /**
     * 根据pan查询数据 取最后一条
     *
     * @param panCardNo
     * @param isOriginal 是否取原始记录
     * @return
     */
    Response<UserHighmarkVo> getUserHighmarkByPanCardNo(String panCardNo, boolean isOriginal);

    /**
     * 查询
     *
     * @param orderId
     * @return
     */
    Response<UserHighmarkVo> getUserHighmarkByOrderId(String orderId);

    /**
     * @param userCode
     * @return
     */
    Response<Boolean> isHighmarkFrozen(String userCode);

}
